package edu.gdin.ecommerce.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CardIssuer entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_card_issuer", catalog = "ecommerce")
public class CardIssuer implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 8713400757353449129L;
	private Integer cardIssuerId;
	private String name;
	private String registerNo;
	private String authKey;
	private String mobile;
	private String tel;
	private String address;
	private String cardFlag;
	private Integer status;
	private Date createTime;
	private Date updateTime;
	private String cardIssuerDesc;

	// Constructors

	/** default constructor */
	public CardIssuer() {
	}

	/** full constructor */
	public CardIssuer(String name, String registerNo, String authKey,
			String mobile, String tel, String address, String cardFlag,
			Integer status, Date createTime, Date updateTime,
			String cardIssuerDesc) {
		this.name = name;
		this.registerNo = registerNo;
		this.authKey = authKey;
		this.mobile = mobile;
		this.tel = tel;
		this.address = address;
		this.cardFlag = cardFlag;
		this.status = status;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.cardIssuerDesc = cardIssuerDesc;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "CARD_ISSUER_ID", unique = true, nullable = false)
	public Integer getCardIssuerId() {
		return this.cardIssuerId;
	}

	public void setCardIssuerId(Integer cardIssuerId) {
		this.cardIssuerId = cardIssuerId;
	}

	@Column(name = "NAME", nullable = false, length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "REGISTER_NO", length = 20)
	public String getRegisterNo() {
		return this.registerNo;
	}

	public void setRegisterNo(String registerNo) {
		this.registerNo = registerNo;
	}

	@Column(name = "AUTH_KEY", length = 20)
	public String getAuthKey() {
		return this.authKey;
	}

	public void setAuthKey(String authKey) {
		this.authKey = authKey;
	}

	@Column(name = "MOBILE", nullable = false, length = 15)
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "TEL", length = 15)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "ADDRESS", length = 100)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "CARD_FLAG", nullable = false, length = 10)
	public String getCardFlag() {
		return this.cardFlag;
	}

	public void setCardFlag(String cardFlag) {
		this.cardFlag = cardFlag;
	}

	@Column(name = "STATUS", nullable = false)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "CREATE_TIME", nullable = false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "UPDATE_TIME", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "CARD_ISSUER_DESC", length = 200)
	public String getCardIssuerDesc() {
		return this.cardIssuerDesc;
	}

	public void setCardIssuerDesc(String cardIssuerDesc) {
		this.cardIssuerDesc = cardIssuerDesc;
	}

}